#include <iostream>
#include <stdio.h>
#include "iterator.h"

int main(int argv, char**argc)
{
    printf("************  test hello zc!!!   **************\n");
    /* add test code! */
    //客户端测试

	SkyworthTelevision tv;
	tv.addItem("CCTV-1");
	tv.addItem("CCTV-2");
	tv.addItem("CCTV-3");
	tv.addItem("CCTV-4");
	tv.addItem("CCTV-5");
	
	auto iter = tv.createIterator();
	
	while(!iter->isLast()){
		cout << iter->currentChannel() << endl;
		iter->next();
	}

    
    return 0;
}
